#ifndef SCENARIO_H
#define SCENARIO_H

#include <QObject>
#include "scene.h"
class Scenario : public QObject
{
	Q_OBJECT

public:
	Scenario(QObject *parent);
	Scenario(QString filename);
	~Scenario();
	bool isReady(void);

	Scene* GetNextScene(int i);
	int GetQuantityOfScenes(void);
	bool Save(void);
	bool addScene(int number);
	bool addScene(int number, QString outerName_);
	bool makeOutput(QString pathToFFmpEg);
	bool addSoundToVideo(QString pathToFFmpEg);
	QString GetProjectPath(void);
	QString GetProjectName(void);
private:
	bool IsReady;
	void makeIt(QString ffmpeg_, QString avi_);
	QString projectPath;
	QString projectName;
	QString fileProjectName;
	bool verifyFinalAndSound(void);
	int numOfScenes;
	QString FileName;
	
	bool ReadScenario(void);
	bool WriteScenario(void);
	QString textOfScenary[2048];
	//array<String^> ^textOfScenary;
	//array<Scene^> ^scenes;
	
	int numOfLines;
	Scene* scenes[50];
	void analyse(QString str);
	/*new code*/QFileInfo* fileOfProj;
};

#endif // SCENARIO_H
/*
int QString::toInt ( bool * ok = 0, int base = 10 ) const
static QString QString::number ( int n, int base = 10 )
*/